﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DefectDBTypes;

namespace Graph
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class Testers : Window, INotifyPropertyChanged
    {
        private MonitoredTester mw_test;

        public event PropertyChangedEventHandler PropertyChanged;

        public MonitoredTester Tester
        {
            get
            {
                return mw_test;
            }
            set
            {
                mw_test = value;
                FirePropertyChangedEvent("Testers");
            }
        }

        public Testers()
        {
            InitializeComponent();
            DataContext = this;
        }

        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            Tester t;
            MonitoredTester mt = new MonitoredTester();
            t = new Tester();
            t.Last_Name = "CL1";
            t.First_Name = "CF1";



            MonitoredTester mt1 = new MonitoredTester();
            t = new Tester();
            t.Last_Name = "CL2";
            t.First_Name = "CF2";



            Tester = mt;

        }

        private void FirePropertyChangedEvent(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }


        // go get client collection from server
        // go get the trouble reprot collection for each client
    }
}
